package com.example.problem1.api.impl;

import com.example.problem1.api.IDemoService;
import com.example.problem1.dao.DemoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DemoService implements IDemoService {

    public DemoService() {
        System.out.println("服务启动时根据注解自动注入DemoService");
    }
}
